programming4us
           
 
 
Windows Server

Windows Server 2008 : Using wbadmin (part 1)

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
9/22/2011 4:03:37 PM

Adding wbadmin to a Server

wbadmin is the command-line tool you can use to access Windows Server backup capabilities. The wbadmin tool is not available on Windows Server 2008 by default. You must add it as a feature by performing the following steps.

StepAction
1.Start Server Manager from the Administrative Tools menu.
2.Select Features. Select Add Features.
3.Scroll down and expand Windows Server Backup Features. Select Windows Server Backup. Your display should look similar to Figure 1.

Tip

It’s not necessary to select the checkbox for Command-Line Tools. wbadmin is installed as part of Windows Server Backup. The command-line tools provide additional functionality with PowerShell.

4.Click Next. Click Install.
5.When the installation completes, click Close.

Figure 1. Adding Windows Server Backup features

Tip

The Windows Server Backup tools replaced the ntbackup utility used in previous versions of Windows. You cannot restore backups created with ntbackup using the wbadmin tool. If you have legacy backups that need to be restored, you can download a compatible ntbackup version at http://go.microsoft.com/fwlink/?LinkId=82917.


Backing Up System State Data with wbadmin

System state data includes the following components on a Windows Server 2008 system.

System State DataComments
Active Directory Domain Services (AD DS) databaseIf the server is a domain controller
SYSVOL folderIf the server is a domain controller
Certificate Services databaseIf the server is running Certificate Services
Internet Information Services (IIS) meta-directoryIf the server is hosting the Web Server (IIS) role
Cluster Service informationIf the server is a member of a cluster
Boot files, including system filesAll servers
System files under Windows File Protection (WFP)All servers
COM+ Class registration databaseAll servers

You can back up system state data on a server with the commands shown in the following table.

Backup System State Data CommandsComments
Back up system state data.
wbadmin start systemstatebackup
-backuptarget:volume-name [-quiet]
C:\>wbadmin start systemstatebackup
-backuptarget:e:

The start systemstatebackup command backs up system state to the volume you specify (drive e: in this example). By default, this queries you to confirm the backup before it starts, but you can suppress the confirmation with the -quiet switch.
Back up critical volumes.
wbadmin start backup -backuptarget:
volume-name: -allcritical
C:\>wbadmin start backup
-backuptarget:e: -allcritical

The -allcritical switch used with the start backup command includes all volumes that include system state data.

Tip

You cannot back up to a critical volume. A critical volume is any drive that includes the system partition and the boot partition, and holds the paging file and any Active Directory database files.

Restoring System State Data with wbadmin

After you back up system state data, you can restore it. However, you need to have version information for the commands. You can get version information for backups stored on the system with the following command:

wbadmin get versions [-backupTarget: VolumeName
| NetworkSharePath]

For example, if you back up data to the E: drive, you can use the following command:

wbadmin get versions -backuptarget:e:

The following listing shows the output of this command, including the key piece of information you need: The version is 01/03/2011-20:51.

C:\>wbadmin get versions -backuptarget:e:
wbadmin 1.0 - Backup command-line tool
(C) Copyright 2004 Microsoft Corp.

Backup time: 1/3/2011 3:51 PM
Backup target: Fixed Disk labeled E:
Version identifier: 01/03/2011-20:51
Can Recover: Application(s), System State

The command you use to restore system state data is as follows:

wbadmin start systemstaterecovery
-showsummary | -version:version-identifier
[-backuptarget:volume-name | network-share-path]
[-machine:backup-machine-name]
[-recoverytarget:target-path-for-recovery] [-authsysvol] [-quiet]

The following table describes these switches.

Start systemstaterecovery SwitchesComments
-showsummary
C:\>wbadmin start
systemstaterecovery -showsummary

Reports the summary of the last system state recovery. It shows the status of the system after the recovery and after it reboots.

Note

This option cannot be accompanied by any other options.

-version:version-identifier
-version: 01/03/2011-20:51

Version identifier of the backup is in the format of mm/dd/yyyy-hh:mm:

Tip

You can get the information with the wbadmin get versions command.

-backuptarget: [volume-name |
network-share-path]
-backuptarget:e:

Specifies the storage location that contains the backup.
-machine:backup-machine-name
-machine:dc1

Specifies the name of the computer for which you want to do the recovery. This is useful when multiple computers are backed up to the same location. The default is the local computer.
-recoverytarget:target-path-for-
recovery
-recoverytarget:d:

Identifies the existing directory where you want to restore the data. You can use this to restore the data to an alternative location.
-authsysvolPerforms an authoritative restore of the SYSVOL folder.
-quietRuns the command without prompting the user for input.

For example, you can issue the following command to restore system state data on a server:

wbadmin start systemstaterecovery -version:01/03/2011-20:51

The following listing shows what you see when the restore has completed.

Summary of recovery:
--------------------

Restore of system state completed successfully [1/3/2011 7:31 PM]

Log of files successfully restored
'C:\Windows\Logs\WindowsServerBackup\SystemStateRestore
03-01-2011 18-33-20.log'


Please restart the machine to complete the operation.
NOTE: When you restart your server, System State Recovery will
attempt to recover many system files which may take several
minutes to complete depending on the number of files that are
getting replaced. The machine might reboot multiple times in the process.
Please be patient and do not interrupt the reboot process.

Tip

If the server is a domain controller, you need to restore system state data while in directory services mode.

Other -----------------
- Windows Home Server 2011 : Understanding Security Groups & Adding a New User
- Setting Up Your Windows Home Server 2011 Network : Handling Multiple Network Subnets & Making a Remote Desktop Connection to the Server
- Windows Small Business Server 2011 : A Networking Primer - Ethernet/IEEE 802.3 & TCP/IP Basics
- Windows Small Business Server 2011 : A Networking Primer - Networking Hardware
- Windows Server 2008 Server Core : Installing Applications with the MSIExec Utility
- Windows Server 2008 Server Core : Getting System Configuration Information with the SystemInfo Utility
- Setting Up Your Windows Home Server 2011 Network : Troubleshooting Network Problems (part 2)
- Setting Up Your Windows Home Server 2011 Network : Troubleshooting Network Problems (part 1)
- Windows Server 2008 : Working with Event Subscriptions - Managing Subscriptions with wecutil & Logging Events with eventcreate
- Windows Server 2003 : Managing Security Configuration with Security Templates (part 2)
- Windows Server 2003 : Managing Security Configuration with Security Templates (part 1)
- Setting Up Your Windows Home Server 2011 Network : Configuring Windows Home Server for Networking
- Introducing Windows Small Business Server 2011: Why Use Windows SBS 2011?
- Introducing Windows Small Business Server 2011: What is Included with Windows SBS 2011?
- Windows Server 2003 Security Configuration (part 2) - Creating Role-Specific Server Configurations
- Windows Server 2003 Security Configuration (part 1) - Windows Server 2003 Security Settings
- Windows Server 2008 Server Core : Accessing the WinPE Network Installer with the NetCfg Utility
- Windows Server 2008 Server Core : Managing the Boot Configuration with the BCDEdit Command
- Windows Server 2008 : Enabling and Testing Event Subscriptions
- Windows Server 2008 : Adding an Account to the Event Log Readers Group
 
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
- First look: Apple Watch

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
programming4us programming4us